package com.Brewing.springboot.entity.TpCategories;

import java.util.ArrayList;
import java.util.List;

public class TpCategoriesExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer pageNo = 1;

    protected Integer startRow;

    protected Integer pageSize = 10;

    protected String fields;

    public TpCategoriesExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo=pageNo;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setStartRow(Integer startRow) {
        this.startRow=startRow;
    }

    public Integer getStartRow() {
        return startRow;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize=pageSize;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setFields(String fields) {
        this.fields=fields;
    }

    public String getFields() {
        return fields;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andAliasIsNull() {
            addCriterion("alias is null");
            return (Criteria) this;
        }

        public Criteria andAliasIsNotNull() {
            addCriterion("alias is not null");
            return (Criteria) this;
        }

        public Criteria andAliasEqualTo(String value) {
            addCriterion("alias =", value, "alias");
            return (Criteria) this;
        }

        public Criteria andAliasNotEqualTo(String value) {
            addCriterion("alias <>", value, "alias");
            return (Criteria) this;
        }

        public Criteria andAliasGreaterThan(String value) {
            addCriterion("alias >", value, "alias");
            return (Criteria) this;
        }

        public Criteria andAliasGreaterThanOrEqualTo(String value) {
            addCriterion("alias >=", value, "alias");
            return (Criteria) this;
        }

        public Criteria andAliasLessThan(String value) {
            addCriterion("alias <", value, "alias");
            return (Criteria) this;
        }

        public Criteria andAliasLessThanOrEqualTo(String value) {
            addCriterion("alias <=", value, "alias");
            return (Criteria) this;
        }

        public Criteria andAliasLike(String value) {
            addCriterion("alias like", value, "alias");
            return (Criteria) this;
        }

        public Criteria andAliasNotLike(String value) {
            addCriterion("alias not like", value, "alias");
            return (Criteria) this;
        }

        public Criteria andAliasIn(List<String> values) {
            addCriterion("alias in", values, "alias");
            return (Criteria) this;
        }

        public Criteria andAliasNotIn(List<String> values) {
            addCriterion("alias not in", values, "alias");
            return (Criteria) this;
        }

        public Criteria andAliasBetween(String value1, String value2) {
            addCriterion("alias between", value1, value2, "alias");
            return (Criteria) this;
        }

        public Criteria andAliasNotBetween(String value1, String value2) {
            addCriterion("alias not between", value1, value2, "alias");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNull() {
            addCriterion("description is null");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNotNull() {
            addCriterion("description is not null");
            return (Criteria) this;
        }

        public Criteria andDescriptionEqualTo(String value) {
            addCriterion("description =", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotEqualTo(String value) {
            addCriterion("description <>", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThan(String value) {
            addCriterion("description >", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("description >=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThan(String value) {
            addCriterion("description <", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThanOrEqualTo(String value) {
            addCriterion("description <=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLike(String value) {
            addCriterion("description like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotLike(String value) {
            addCriterion("description not like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionIn(List<String> values) {
            addCriterion("description in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotIn(List<String> values) {
            addCriterion("description not in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionBetween(String value1, String value2) {
            addCriterion("description between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotBetween(String value1, String value2) {
            addCriterion("description not between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andBgpictureIsNull() {
            addCriterion("bgPicture is null");
            return (Criteria) this;
        }

        public Criteria andBgpictureIsNotNull() {
            addCriterion("bgPicture is not null");
            return (Criteria) this;
        }

        public Criteria andBgpictureEqualTo(String value) {
            addCriterion("bgPicture =", value, "bgpicture");
            return (Criteria) this;
        }

        public Criteria andBgpictureNotEqualTo(String value) {
            addCriterion("bgPicture <>", value, "bgpicture");
            return (Criteria) this;
        }

        public Criteria andBgpictureGreaterThan(String value) {
            addCriterion("bgPicture >", value, "bgpicture");
            return (Criteria) this;
        }

        public Criteria andBgpictureGreaterThanOrEqualTo(String value) {
            addCriterion("bgPicture >=", value, "bgpicture");
            return (Criteria) this;
        }

        public Criteria andBgpictureLessThan(String value) {
            addCriterion("bgPicture <", value, "bgpicture");
            return (Criteria) this;
        }

        public Criteria andBgpictureLessThanOrEqualTo(String value) {
            addCriterion("bgPicture <=", value, "bgpicture");
            return (Criteria) this;
        }

        public Criteria andBgpictureLike(String value) {
            addCriterion("bgPicture like", value, "bgpicture");
            return (Criteria) this;
        }

        public Criteria andBgpictureNotLike(String value) {
            addCriterion("bgPicture not like", value, "bgpicture");
            return (Criteria) this;
        }

        public Criteria andBgpictureIn(List<String> values) {
            addCriterion("bgPicture in", values, "bgpicture");
            return (Criteria) this;
        }

        public Criteria andBgpictureNotIn(List<String> values) {
            addCriterion("bgPicture not in", values, "bgpicture");
            return (Criteria) this;
        }

        public Criteria andBgpictureBetween(String value1, String value2) {
            addCriterion("bgPicture between", value1, value2, "bgpicture");
            return (Criteria) this;
        }

        public Criteria andBgpictureNotBetween(String value1, String value2) {
            addCriterion("bgPicture not between", value1, value2, "bgpicture");
            return (Criteria) this;
        }

        public Criteria andBgcolorIsNull() {
            addCriterion("bgColor is null");
            return (Criteria) this;
        }

        public Criteria andBgcolorIsNotNull() {
            addCriterion("bgColor is not null");
            return (Criteria) this;
        }

        public Criteria andBgcolorEqualTo(String value) {
            addCriterion("bgColor =", value, "bgcolor");
            return (Criteria) this;
        }

        public Criteria andBgcolorNotEqualTo(String value) {
            addCriterion("bgColor <>", value, "bgcolor");
            return (Criteria) this;
        }

        public Criteria andBgcolorGreaterThan(String value) {
            addCriterion("bgColor >", value, "bgcolor");
            return (Criteria) this;
        }

        public Criteria andBgcolorGreaterThanOrEqualTo(String value) {
            addCriterion("bgColor >=", value, "bgcolor");
            return (Criteria) this;
        }

        public Criteria andBgcolorLessThan(String value) {
            addCriterion("bgColor <", value, "bgcolor");
            return (Criteria) this;
        }

        public Criteria andBgcolorLessThanOrEqualTo(String value) {
            addCriterion("bgColor <=", value, "bgcolor");
            return (Criteria) this;
        }

        public Criteria andBgcolorLike(String value) {
            addCriterion("bgColor like", value, "bgcolor");
            return (Criteria) this;
        }

        public Criteria andBgcolorNotLike(String value) {
            addCriterion("bgColor not like", value, "bgcolor");
            return (Criteria) this;
        }

        public Criteria andBgcolorIn(List<String> values) {
            addCriterion("bgColor in", values, "bgcolor");
            return (Criteria) this;
        }

        public Criteria andBgcolorNotIn(List<String> values) {
            addCriterion("bgColor not in", values, "bgcolor");
            return (Criteria) this;
        }

        public Criteria andBgcolorBetween(String value1, String value2) {
            addCriterion("bgColor between", value1, value2, "bgcolor");
            return (Criteria) this;
        }

        public Criteria andBgcolorNotBetween(String value1, String value2) {
            addCriterion("bgColor not between", value1, value2, "bgcolor");
            return (Criteria) this;
        }

        public Criteria andHeaderimageIsNull() {
            addCriterion("headerImage is null");
            return (Criteria) this;
        }

        public Criteria andHeaderimageIsNotNull() {
            addCriterion("headerImage is not null");
            return (Criteria) this;
        }

        public Criteria andHeaderimageEqualTo(String value) {
            addCriterion("headerImage =", value, "headerimage");
            return (Criteria) this;
        }

        public Criteria andHeaderimageNotEqualTo(String value) {
            addCriterion("headerImage <>", value, "headerimage");
            return (Criteria) this;
        }

        public Criteria andHeaderimageGreaterThan(String value) {
            addCriterion("headerImage >", value, "headerimage");
            return (Criteria) this;
        }

        public Criteria andHeaderimageGreaterThanOrEqualTo(String value) {
            addCriterion("headerImage >=", value, "headerimage");
            return (Criteria) this;
        }

        public Criteria andHeaderimageLessThan(String value) {
            addCriterion("headerImage <", value, "headerimage");
            return (Criteria) this;
        }

        public Criteria andHeaderimageLessThanOrEqualTo(String value) {
            addCriterion("headerImage <=", value, "headerimage");
            return (Criteria) this;
        }

        public Criteria andHeaderimageLike(String value) {
            addCriterion("headerImage like", value, "headerimage");
            return (Criteria) this;
        }

        public Criteria andHeaderimageNotLike(String value) {
            addCriterion("headerImage not like", value, "headerimage");
            return (Criteria) this;
        }

        public Criteria andHeaderimageIn(List<String> values) {
            addCriterion("headerImage in", values, "headerimage");
            return (Criteria) this;
        }

        public Criteria andHeaderimageNotIn(List<String> values) {
            addCriterion("headerImage not in", values, "headerimage");
            return (Criteria) this;
        }

        public Criteria andHeaderimageBetween(String value1, String value2) {
            addCriterion("headerImage between", value1, value2, "headerimage");
            return (Criteria) this;
        }

        public Criteria andHeaderimageNotBetween(String value1, String value2) {
            addCriterion("headerImage not between", value1, value2, "headerimage");
            return (Criteria) this;
        }

        public Criteria andDefaultauthoridIsNull() {
            addCriterion("defaultAuthorId is null");
            return (Criteria) this;
        }

        public Criteria andDefaultauthoridIsNotNull() {
            addCriterion("defaultAuthorId is not null");
            return (Criteria) this;
        }

        public Criteria andDefaultauthoridEqualTo(String value) {
            addCriterion("defaultAuthorId =", value, "defaultauthorid");
            return (Criteria) this;
        }

        public Criteria andDefaultauthoridNotEqualTo(String value) {
            addCriterion("defaultAuthorId <>", value, "defaultauthorid");
            return (Criteria) this;
        }

        public Criteria andDefaultauthoridGreaterThan(String value) {
            addCriterion("defaultAuthorId >", value, "defaultauthorid");
            return (Criteria) this;
        }

        public Criteria andDefaultauthoridGreaterThanOrEqualTo(String value) {
            addCriterion("defaultAuthorId >=", value, "defaultauthorid");
            return (Criteria) this;
        }

        public Criteria andDefaultauthoridLessThan(String value) {
            addCriterion("defaultAuthorId <", value, "defaultauthorid");
            return (Criteria) this;
        }

        public Criteria andDefaultauthoridLessThanOrEqualTo(String value) {
            addCriterion("defaultAuthorId <=", value, "defaultauthorid");
            return (Criteria) this;
        }

        public Criteria andDefaultauthoridLike(String value) {
            addCriterion("defaultAuthorId like", value, "defaultauthorid");
            return (Criteria) this;
        }

        public Criteria andDefaultauthoridNotLike(String value) {
            addCriterion("defaultAuthorId not like", value, "defaultauthorid");
            return (Criteria) this;
        }

        public Criteria andDefaultauthoridIn(List<String> values) {
            addCriterion("defaultAuthorId in", values, "defaultauthorid");
            return (Criteria) this;
        }

        public Criteria andDefaultauthoridNotIn(List<String> values) {
            addCriterion("defaultAuthorId not in", values, "defaultauthorid");
            return (Criteria) this;
        }

        public Criteria andDefaultauthoridBetween(String value1, String value2) {
            addCriterion("defaultAuthorId between", value1, value2, "defaultauthorid");
            return (Criteria) this;
        }

        public Criteria andDefaultauthoridNotBetween(String value1, String value2) {
            addCriterion("defaultAuthorId not between", value1, value2, "defaultauthorid");
            return (Criteria) this;
        }

        public Criteria andTagidIsNull() {
            addCriterion("tagId is null");
            return (Criteria) this;
        }

        public Criteria andTagidIsNotNull() {
            addCriterion("tagId is not null");
            return (Criteria) this;
        }

        public Criteria andTagidEqualTo(String value) {
            addCriterion("tagId =", value, "tagid");
            return (Criteria) this;
        }

        public Criteria andTagidNotEqualTo(String value) {
            addCriterion("tagId <>", value, "tagid");
            return (Criteria) this;
        }

        public Criteria andTagidGreaterThan(String value) {
            addCriterion("tagId >", value, "tagid");
            return (Criteria) this;
        }

        public Criteria andTagidGreaterThanOrEqualTo(String value) {
            addCriterion("tagId >=", value, "tagid");
            return (Criteria) this;
        }

        public Criteria andTagidLessThan(String value) {
            addCriterion("tagId <", value, "tagid");
            return (Criteria) this;
        }

        public Criteria andTagidLessThanOrEqualTo(String value) {
            addCriterion("tagId <=", value, "tagid");
            return (Criteria) this;
        }

        public Criteria andTagidLike(String value) {
            addCriterion("tagId like", value, "tagid");
            return (Criteria) this;
        }

        public Criteria andTagidNotLike(String value) {
            addCriterion("tagId not like", value, "tagid");
            return (Criteria) this;
        }

        public Criteria andTagidIn(List<String> values) {
            addCriterion("tagId in", values, "tagid");
            return (Criteria) this;
        }

        public Criteria andTagidNotIn(List<String> values) {
            addCriterion("tagId not in", values, "tagid");
            return (Criteria) this;
        }

        public Criteria andTagidBetween(String value1, String value2) {
            addCriterion("tagId between", value1, value2, "tagid");
            return (Criteria) this;
        }

        public Criteria andTagidNotBetween(String value1, String value2) {
            addCriterion("tagId not between", value1, value2, "tagid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}